package com.rran.study.designpattern.behavioral.visitor;

/**
 * @author yy
 * @Type PlayerMe.java
 * @Desc
 * @date 2020/7/28 11:46
 */
public class PlayerMe implements Player {
    @Override
    public void visitZhuang(ZhuangHero element) {
        System.out.println("玩家我访问庄周，庄周开始使出技能");
        element.operate();
    }
    @Override
    public void visitZhen(ZhenHero element) {
        System.out.println("玩家我访问甄姬，甄姬开始使出技能");
        element.operate();
    }
}
